<%@page import="cn.edu.hust.sse.software7.class3.common.DateTools"%>
<%@page import="java.util.List"%>
<%@page import="cn.edu.hust.sse.software7.class3.entities.EBUser"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html>
<head>
<title>Insert title here</title>
</head>
<body>
<div>
<%
	List<EBUser> users = (List<EBUser>) session.getAttribute("users");
%>
<%
	if (null == users || users.isEmpty()) {
%>
<div><b>还没有用户</b></div>
<%
	} else {
%>

<%
	for (EBUser user : users) {
%>
<div style="padding: 10px;background: activeborder;">
<table style="background-color: silver; width: 100%;">
	<tr>
		<td><b>用户名:</b></td>
		<td><%=user.getUserName()%></td>
		<td><b>生日:</b></td>
		<td><%=DateTools.getString(user.getBirth())%></td>
	</tr>
	<tr>
		<td><b>手机:</b></td>
		<td colspan="3"><%=user.getCellPhone()%></td>
	</tr>
	<tr>
		<td><b>Email:</b></td>
		<td colspan="3"><%=user.getEmail()%></td>
	</tr>
</table>
</div>
<%
	}
%>

<%
	}
%>
</div>
</body>
</html>